<template>
  <div>
    父传过来的值为：{{ value }}
    <button @click="aa"></button>
  </div>
</template>

<script>
export default {
  props: ['value'],
  model: {
    // 可以修改默认属性名或默认事件名
    event: 'input',
    prop: 'value'
  },
  methods: {
    aa () {
      this.$emit('input', 123)
    }
  }
}
</script>

<style lang="less" scoped>
</style>
